package org.jeecg.modules.basicLock.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.basicLock.entity.BasicLock;
import org.jeecg.modules.basicLock.mapper.BasicLockMapper;
import org.jeecg.modules.basicLock.service.IBasicLockService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @Description: 电子定位锁
 * @Author: jeecg-boot
 * @Date:   2024-08-16
 * @Version: V1.0
 */
@Service
public class BasicLockServiceImpl extends ServiceImpl<BasicLockMapper, BasicLock> implements IBasicLockService {

    @Override
    public List<String> getLockCode() {
        return list().stream().map(BasicLock::getLockCode).collect(Collectors.toList());
    }
}
